package br.usp.icmc.client.dao;


import java.util.List;


public interface AbstractDAO<DomainObject, KeyType> {

	public DomainObject load(KeyType id) throws Exception;  

	public void update(DomainObject object) throws Exception;  

	public void delete(DomainObject object) throws Exception;  

	public void save(DomainObject object) throws Exception;  

	public void deleteById(KeyType id);  

	public List<DomainObject> getList();  

	public void deleteAll();  

	public int count();  
}
